package com.mingqijia.gassafety.authority.api.req.resource;

import com.mingqijia.gassafety.shared.cqrs.PageableReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @author Damon S.
 * @version v1.0.1
 * @date {YEAR}年{MONTH}月{DAY}日 {TIME}
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "查询资源参数")
public final class QueryResourceReqDTO extends PageableReq implements Serializable {
    @ApiModelProperty(value = "资源名称", required = true)
    private String name;

    @ApiModelProperty(value = "资源类型:1-菜单，2-按钮，3-数据", required = true)
    private Integer type;

    @ApiModelProperty(value = "资源状态[1-激活，0-冻结]", required = true)
    private Integer state;

    @ApiModelProperty(value = "上级资源Id")
    private String parentId;
}
